package com.cmd;

import com.alibaba.fastjson.JSONObject;
import com.player.User;
import com.qy.util.StaticData;
import com.util.AbstractCommand;
import com.util.PBMessage;
import com.util.QingNiuUtil;

public class QingNiuKeyGetCMD extends AbstractCommand{

	@Override
	public void execute(User user, PBMessage packet) throws Exception {
		/*
		 */
		JSONObject reJs = new JSONObject();
		reJs.put("qinniuKey",QingNiuUtil.getUploadToken());
		reJs.put(StaticData.reKey.code.getKey(), StaticData.codeType.ok.getType());
		reJs.put(StaticData.reKey.cmd.getKey(),packet.getCode());
		user.sendPacket(reJs);
		return;
	}

}
